package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class MemberType implements Serializable {
    private String mtno;

    private String mttype;

    private Date mtbegintime;

    private Date mtendtime;

    private String mtdesc;

    private static final long serialVersionUID = 1L;

    public String getMtno() {
        return mtno;
    }

    public void setMtno(String mtno) {
        this.mtno = mtno;
    }

    public String getMttype() {
        return mttype;
    }

    public void setMttype(String mttype) {
        this.mttype = mttype;
    }

    public Date getMtbegintime() {
        return mtbegintime;
    }

    public void setMtbegintime(Date mtbegintime) {
        this.mtbegintime = mtbegintime;
    }

    public Date getMtendtime() {
        return mtendtime;
    }

    public void setMtendtime(Date mtendtime) {
        this.mtendtime = mtendtime;
    }

    public String getMtdesc() {
        return mtdesc;
    }

    public void setMtdesc(String mtdesc) {
        this.mtdesc = mtdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MemberType other = (MemberType) that;
        return (this.getMtno() == null ? other.getMtno() == null : this.getMtno().equals(other.getMtno()))
            && (this.getMttype() == null ? other.getMttype() == null : this.getMttype().equals(other.getMttype()))
            && (this.getMtbegintime() == null ? other.getMtbegintime() == null : this.getMtbegintime().equals(other.getMtbegintime()))
            && (this.getMtendtime() == null ? other.getMtendtime() == null : this.getMtendtime().equals(other.getMtendtime()))
            && (this.getMtdesc() == null ? other.getMtdesc() == null : this.getMtdesc().equals(other.getMtdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMtno() == null) ? 0 : getMtno().hashCode());
        result = prime * result + ((getMttype() == null) ? 0 : getMttype().hashCode());
        result = prime * result + ((getMtbegintime() == null) ? 0 : getMtbegintime().hashCode());
        result = prime * result + ((getMtendtime() == null) ? 0 : getMtendtime().hashCode());
        result = prime * result + ((getMtdesc() == null) ? 0 : getMtdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mtno=").append(mtno);
        sb.append(", mttype=").append(mttype);
        sb.append(", mtbegintime=").append(mtbegintime);
        sb.append(", mtendtime=").append(mtendtime);
        sb.append(", mtdesc=").append(mtdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}